﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Telerik.WinControls;

namespace MN.Framework.UI.Win
{
    public class MnMessageBox : RadMessageBox
    {
        public static DialogResult ShowErrorBox(string error)
        {
            return ShowErrorBox(error, Resource.Core.MessageBoxErrorTitle);
        }
        public static DialogResult ShowErrorBox(string error, string title)
        {
            return Show(error, title, System.Windows.Forms.MessageBoxButtons.OK, RadMessageIcon.Error);
        }
        public static DialogResult ShowInfoBox(string error, string title)
        {
            return Show(error, title, System.Windows.Forms.MessageBoxButtons.OK, RadMessageIcon.Info);
        }
        public static DialogResult ShowAlertBox(string error, string title)
        {
            return Show(error, title, System.Windows.Forms.MessageBoxButtons.OK, RadMessageIcon.Exclamation);
        }
    }
}
